package com.yimi.policyservice.repository;

import com.yimi.policyservice.entity.base.policy.PolicyAccfundProduct;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface PolicyAccfundProductRepository extends JpaRepository<PolicyAccfundProduct,String> {
    /**
     * 删除
     * @param ids
     */
    @Modifying
    @Transactional
    @Query(value = "delete from t_policy_accfund_product where id in ?1",nativeQuery = true)
    void deleteByIds(List<String> ids);


}
